package com.polaris.live.utils.sensor.base

import androidx.appcompat.app.AppCompatActivity

/**
 * 基类测试模块
 *
 * @author Created by lucas on 2023/10/25 16:09
 * @since 1.0.0
 */
abstract class AbstractModule(
    protected val mContext: AppCompatActivity,
    private val mOnEnabledModuleListener: OnEnabledModuleListener? = null
) : IModule {

    protected val TAG = javaClass.simpleName

    override val enabled: Boolean
        get() = mOnEnabledModuleListener?.isEnabled ?: true

}

interface OnEnabledModuleListener {

    val isEnabled: Boolean

}